package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.ArrayList;
import java.util.List;

/**
 * 房间实体类
 */
@TableName("t_room")
public class RoomBean {
    /**房间编号*/
    @TableId(value = "pk_roomId",type = IdType.AUTO)
    private  Integer roomId;
    /**房间地址*/
    @TableField("r_address")
    private String roomAddress;
    /**房间状态*/
    @TableField("r_status")
    private String roomStatus="正常";
    /**房间类型*/
    @TableField("r_type")
    private String roomType;
    /**可住人数*/
    @TableField("r_maxNum")
    private Integer maxNum;
    /**已住人数*/
    @TableField(exist = false)
    private Integer nowNum;
    /**房间学生集合*/
    @TableField(exist = false)
    private List<StudentBean> stuList=new ArrayList<>();

    public RoomBean() {
    }

    public Integer getRoomId() {
        return roomId;
    }

    public void setRoomId(Integer roomId) {
        this.roomId = roomId;
    }

    public String getRoomAddress() {
        return roomAddress;
    }

    public void setRoomAddress(String roomAddress) {
        this.roomAddress = roomAddress;
    }

    public String getRoomStatus() {
        return roomStatus;
    }

    public void setRoomStatus(String roomStatus) {
        this.roomStatus = roomStatus;
    }

    public String getRoomType() {
        return roomType;
    }

    public void setRoomType(String roomType) {
        this.roomType = roomType;
    }

    public Integer getMaxNum() {
        return maxNum;
    }

    public void setMaxNum(Integer maxNum) {
        this.maxNum = maxNum;
    }

    public Integer getNowNum() {
        return nowNum;
    }

    public void setNowNum(Integer nowNum) {
        this.nowNum = nowNum;
    }


    public List<StudentBean> getStuList() {
        return stuList;
    }

    public void setStuList(List<StudentBean> stuList) {
        this.stuList = stuList;
    }

    @Override
    public String toString() {
        return "RoomBean{" +
                "roomId=" + roomId +
                ", roomAddress='" + roomAddress + '\'' +
                ", roomStatus='" + roomStatus + '\'' +
                ", roomType='" + roomType + '\'' +
                ", maxNum=" + maxNum +
                ", nowNum=" + nowNum +
                ", stuList=" + stuList +
                '}';
    }
}
